<%@page import="ipsite.controller.Utils"%>
<%@page import="com.mongodb.DBObject"%>
<%@page import="com.mongodb.DBCursor"%>
<%

String topic = (String) request.getAttribute("name");
DBObject domain = (DBObject) request.getAttribute("domain");

String title = "Whois " + domain.get("name");
String description = "Whois "+domain.get("name")+".ipsite help you find information on the ip, the ip on the same website, information about the domain is on ip. Best of all, it's free!";
String keywords = domain.get("name")+"whois,domain,whois domain,ip,whois ip,infomation whois";
%>
<jsp:include page="/layout/header.jsp">
	<jsp:param name="title" value="<%=title %>"/>
	<jsp:param name="description" value="<%=description %>"/>
	<jsp:param name="keywords" value="<%=keywords %>"/>
	<jsp:param name="index" value="true"/>
</jsp:include>

<div id="content">
        	<div id="content_inner">
            	<div id="leftsidecontent">
                	<div class="web-information">

                        <h1>Whois <a href="/d/<%=topic %>" class="l_whois"><%=topic %></a></h1>
                        <hr />
                        
						<form action="/sw" class="s_whois">
							<input type="text" name="name" value="example.com" onclick="javascript:this.value = ''"/>
							<button>Whois</button>
						</form>  
						<br/>         
						<%@ include file='/adv/adv468.jsp'%>             
						<hr size="1"/>
						
						<%=(domain.get("whois")!=null)?Utils.returnWhois(domain.get("whois").toString()):"No whois" %>
                    </div>
                </div>
                <div id="rightsidecontent">
                	<div class="adv-1">
                		<%@ include file='/adv/left.jsp'%>
                	</div>
                	<div class="adv-1">
                		<%@ include file='/adv/left.jsp'%>
                	</div>
                </div>
                <div class="clearbreak"></div>
            </div>
        </div>
<%@ include file='/layout/footer.jsp'%>		